<template>
	<view class="comment">
		<view class="title">评论</view>
		<view class="list">
			<template v-for="item of replies">
				<my-item :key="item['id']" :reply="item" />
			</template>
			<data-empty v-if="!replies.length" />
		</view>
	</view>
</template>

<script>
	import item from './reply-item.vue'
	export default {
		components: {
			'my-item': item
		},
		props: ['replies']
	}
</script>

<style lang="scss">
	.comment{
		padding: 10px 15px;
		background-color: #fff;
		.title{
			padding-bottom: 5px;
			margin-bottom: 10px;
			font-size: 32rpx;
			color: #333;
		}
	}
</style>
